package main

import (
	"fmt"
	"os"
)

func main() {
	cmds := os.Args

	for key, value := range cmds {
		fmt.Println("key: ", key, "cmd：", value, "cmd len: ", len(cmds))
	}

	if len(cmds) < 2 {
		fmt.Println("请输入正确参数！")
	}

	switch cmds[1] {
	case "hello":
		fmt.Println("hello")
		fallthrough
	case "world":
		fmt.Println("world")
	default:
		fmt.Println("default call!")
	}
}
